#if !defined(__APP_MQTT_H__)
#define __APP_MQTT_H__

#define ADDRESS     "tcp://192.168.44.10:1883"
#define CLIENTID    "d2c1dc75-839a-4894-9f93-5bc2b8acdea1"
#define PUSH_TOPIC       "51Car_Status"
// #define PULL_TOPIC       "51Car_Status"
#define PULL_TOPIC       "51Car_Remote"
#define QOS         0
#define TIMEOUT     10000L

int app_mqtt_init(void);

void app_mqtt_close(void);

int app_mqtt_send(char *payload, int payload_len);

void app_mqtt_registerRecvCallback(int (*callback)(char *payload, int payload_len));

#endif // __APP_MQTT_H__
